package com.shanghaionstar.nav.model;

import java.io.Serializable;

/**
 * Created by 6335yz on 2016/7/17.
 */
public enum LocateStatus implements Serializable{
    LOCATING("locating"),
    LOCATED("located"),
    LOCATE_FAIL("locatefail");
    private final String value;

    LocateStatus(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static LocateStatus fromValue(String v) {
        for (LocateStatus c : LocateStatus.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        return null;
    }
}
